package com.ruoyi.common.core.domain.bo;

import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;

/**
 * 行政区划业务对象 area
 *
 * @author strongme
 * @date 2023-01-25
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class AreaBo extends BaseEntity {

    /**
     * 编码
     */
    @NotBlank(message = "编码不能为空", groups = {EditGroup.class})
    private String id;

    /**
     * 父级编码
     */
    @NotBlank(message = "父级编码不能为空", groups = {AddGroup.class, EditGroup.class})
    private String parId;

    /**
     * 名称
     */
    @NotBlank(message = "名称不能为空", groups = {AddGroup.class, EditGroup.class})
    private String name;

    /**
     * 标识
     */
    @NotBlank(message = "标识不能为空", groups = {AddGroup.class, EditGroup.class})
    private String remark;


}
